<?PHP
require_once('../model/ComentarioDAO.php');

class ControllerComentario
{
    private $dao = NULL;


    /*************************************************************************
    * Name: __construct
    * Description: Construtor da Classe. Inicializar os Atributos.
    * Parameters: 
    * Returns: Nenhum
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function __construct()
    {
        $this->dao = new TipoUsuarioDAO();
    }

    
    /*************************************************************************
    * Name: 
    * Description: 
    * Parameters: 
    * Returns: 
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function insert($obj)
    {
        return $this->dao->insert($obj);
    }


    /*************************************************************************
    * Name: 
    * Description: 
    * Parameters: 
    * Returns: 
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function deletePorId($id)
    {
        return $this->dao->deletePorId($id);
    }


    /*************************************************************************
    * Name: 
    * Description: 
    * Parameters: 
    * Returns: 
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function deletePorObj($obj)
    {
        return $this->dao->deletePorObj($obj);
    }


    /*************************************************************************
    * Name: 
    * Description: 
    * Parameters: 
    * Returns: 
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function update($obj)
    {
        return $this->dao->update($obj);
    }


    /*************************************************************************
    * Name: 
    * Description: 
    * Parameters: 
    * Returns: 
    * Author: Felipe O. Simões
    * Last Modified: 07/04/2012 - Felipe O. Simões
    *************************************************************************/
    public function select($obj)
    {
        return $this->dao->select($obj);
    }

}	
?>